package com.hbisedm.interninfosys.intern.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sam
 * @since 2020-12-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserLeave implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @TableField("SID")
    private Integer sid;

    @TableField(exist = false)
    private String stuName;

    @TableField("IID")
    private Integer iid;

    @TableField(exist = false)
    private String internName;

    @TableField("LEAVE_START_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime leaveStartTime;

    @TableField("LEAVE_END_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime leaveEndTime;

    @TableField("LEAVE_CONTENT")
    private String leaveContent;

    @TableField("LEAVE_STATUS")
    private Boolean leaveStatus;

    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
